export http_proxy=http://192.168.10.1:10808
export https_proxy=http://192.168.10.1:10808

curl --version
curl -I --http3 https://cloudflare-quic.com
curl -vk --http3 https://localhost:4243/ping
curl -vk --http3 https://localhost:4242/ping
exit

exit
sudo apt update
sudo apt install -y build-essential autoconf libtool pkg-config \
  libssl-dev cmake git curl zlib1g-dev


1. 安装 nghttp3

git clone https://github.com/nghttp2/nghttp3
cd nghttp3
autoreconf -i
./configure --prefix=/usr/local
make -j$(nproc)
sudo make install

#✅ 三、编译 curl 启用 HTTP/3 支持
cd ..
git clone https://github.com/curl/curl
cd curl
./buildconf

./configure --prefix=/usr/local \
  --with-ssl \
  --with-nghttp3=/usr/local \
  --with-ngtcp2=/usr/local \
  --enable-alt-svc \
  --enable-http3 \
  PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"

make -j$(nproc)
sudo make install